package com.and9.mchen.mcmusic.dao.factory;

import com.and9.mchen.mcmusic.dao.ISongDao;
import com.and9.mchen.mcmusic.util.EntityHelper;

/**
 * 
 * @author Administrator
 *
 */
public class SongDaoFactory {
	
	private ISongDao songDao = null;
	private static SongDaoFactory instance = new SongDaoFactory();
	
	private  SongDaoFactory(){
		songDao=(ISongDao) EntityHelper.createDaoByProperty("ISongDaoClass");
	}
	public static SongDaoFactory getInstance(){
		return instance;
	}
	public ISongDao getSongDao(){
		return songDao;
	}
}
